#include"Header.h"
int main()
{
	Crectangle recta;
	recta.setvalues(3, 4);
	Crectangle *rectb;
	rectb = &recta;
	rectb->setvalues(3, 9);
	cout << "area :" << recta.area()<<endl;
	cout << "area :" << rectb->area()<<endl;
	Crectangle *rectc = new Crectangle();
	rectc->setvalues(5, 6);
	rectb = rectc;
	rectc->setvalues(7, 8);
	cout << "area:" << rectb->area()<<endl;
	cout << "area:" << rectc->area()<<endl;
	delete rectb;
	system("pause");
	
	return 0;

}